{% extends "_layouts/cp" %} {% set title = "Sections"|t %} {% set crumbs = [ { label: "Settings"|t, url: url('settings') } ] %} {% set docsUrl = 'http://buildwithcraft.com/docs/sections-and-entries#sections' %} {% set content %}
{{ "No sections exist yet."|t }}
{{ "Name"|t }} | {{ "Handle"|t }} | {{ "Type"|t }} | {{ "URL Format"|t }} | {{ "Entry Types"|t}} | {% for section in sections %} |
---|---|---|---|---|---|
{{ section.name|t }} | {{ section.handle }} |
{{ section.type|title|t }} | {%- if section.isHomepage() -%} {%- else -%} {{ section.getUrlFormat() }} {%- endif -%} | {% if section.type == 'single' and section.getEntryTypes()|length == 1 %} {% set entryType = section.getEntryTypes()[0] %} {{ "Edit entry type"|t }} {% else %} {{ "Edit entry types ({count})"|t({ count: section.getEntryTypes()|length }) }} {% endif %} |